﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace File_ProcessorApp
{
    public  class FileType
    {
        public  int Id { get; set; }
        /// <summary>
        /// 文件类型
        /// </summary>
        public  string Name { get; set; }
        /// <summary>
        /// 文件名筛选器字符串
        /// </summary>
        public string FileTypeFilter { get; set; }

        public List<FileType> SetFileType()
        {
            List<FileType> fileTypeList = new List<FileType>()
            {
                new FileType(){Id=1,Name="PDF",FileTypeFilter="PDF文件(*.pdf)|*.pdf"},
                new FileType(){Id=2,Name="Image",FileTypeFilter="JPEG Image(*.jpg)|*.jpg|PNG 图像(*.png)|*.png"},
                new FileType(){Id=3,Name="Txt",FileTypeFilter="文本文档(*.txt)|*.txt"},
                new FileType(){Id=4,Name="All",FileTypeFilter="所有文件(*.*)|*.*"},
            };
            return fileTypeList;
        }
    }
}
